#include<stdio.h>
#include<string.h>
#include"string_value.h"
#include"client.h"
#include"server.h"

static void btn_send_action(){
	char *msg = "hello";
	char *p;
	msg = msg + strspn(msg, " ");
	int isactive = 1;
	if(msg&&*msg&&isactive){
		pthread_mutex_lock(&client_done);
		client_send_msg(msg);
		pthread_mutex_unlock(&client_request);
		isactive = 0;
	}
	return;

}

static int m1_input_action(int c, char *after){
	if(c=='\n'){
		btn_send_action();
		return 1;
	}else{
		return c;
	}
}

void setup_view();
